package org.example.clouddemo.product.service.common;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.example.clouddemo.bean.common.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* 产品表 服务接口
*/
public interface ProductService extends IService<Product> {
    IPage<Product> selectPageVo(Page<Product> page,Product product);

    Product selectOne(Long pid);

    int create(Product product);

    int update(Product product);

    int delete(String id);

//    List<Product> selectAll();

    List<Product> selectOrderByPriceDesc();
}
